package com.aspose.cells;

class zale extends zbz {
   zale(int var1) {
      this.c(4117);
      this.b = var1;
      this.b(20);
      this.c = new byte[20];
      this.c[16] = 3;
      this.c[17] = 1;
      this.c[18] = 31;
      this.c[0] = 103;
      this.c[1] = 13;
      this.c[4] = -5;
      this.c[5] = 5;
      this.c[8] = 24;
      this.c[9] = 2;
      this.c[12] = 94;
      this.c[13] = 2;
   }

   void a() {
      this.c[16] = 7;
   }

   void a(Legend var1) {
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getX()), 0, this.c, 0, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getY()), 0, this.c, 4, 4);
      int var2 = 0;
      if (var1.p() != 0) {
         var2 = var1.p();
      } else if (var1.l()) {
         var2 = 532;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, this.c, 8, 4);
      var2 = 0;
      if (var1.o() != 0) {
         var2 = var1.o();
      } else if (var1.l()) {
         var2 = 323;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, this.c, 12, 4);
      if (!var1.i()) {
         this.c[18] = 2;
         this.c[16] = 7;
         if (var1.j()) {
            this.c[18] = (byte)(this.c[18] | 4);
         }

         if (var1.k()) {
            this.c[18] = (byte)(this.c[18] | 8);
         }
      }

      if (var1.B()) {
         this.c[18] = (byte)(this.c[18] | 16);
      }

   }

   void a(byte var1) {
      this.c[16] = var1;
      if (var1 == 0 || var1 == 2) {
         this.c[18] = (byte)(this.c[18] & 239);
      }

   }
}
